package jym.tan.tmdb.bean.wrapper;

import java.io.Serializable;
import java.util.List;

import jym.tan.tmdb.bean.Base;
import jym.tan.tmdb.bean.Image;

import com.google.gson.annotations.SerializedName;

/**
 * The Class MovieImageWrapper. The Wrapper class which holds the 
 * {@link List} of {@link Image} of backdrops and posters and other information.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>backdrops</li>
 * 		<li>posters</li>
 * 	</ul>
 * </p>	
 * @author Tanmoy
 */
public class MovieImageWrapper extends Base implements Serializable {

	private static final long serialVersionUID = 1450063096807656536L;

	@SerializedName("backdrops")
	private List<Image> backdrops;
	
	@SerializedName("posters")
	private List<Image> posters;
	
	/**
	 * Default Constructor.
	 */
	public MovieImageWrapper() {
		
	}

	/**
	 * Gets the {@link List} of backdrop {@link Image}.
	 *
	 * @return 
	 * 		The backdrops
	 */
	public List<Image> getBackdrops() {
		return backdrops;
	}

	/**
	 * Sets the {@link List} of backdrop {@link Image}.
	 *
	 * @param backdrops 
	 * 		The new backdrops
	 */
	public void setBackdrops(List<Image> backdrops) {
		this.backdrops = backdrops;
	}

	/**
	 * Gets the {@link List} of poster {@link Image}.
	 *
	 * @return 
	 * 		The posters
	 */
	public List<Image> getPosters() {
		return posters;
	}

	/**
	 * Sets the {@link List} of poster {@link Image}.
	 *
	 * @param posters 
	 * 		The new posters
	 */
	public void setPosters(List<Image> posters) {
		this.posters = posters;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("backdrops:").append(backdrops).
			append(",").
			append("posters:").append(posters).
			append("}");
		return builder.toString();
	}
}
